from django.urls import path
from apps.OrderInfos.views import OrderSettlementView, OrderCommitView, OrderInfosView, OrderGoodsView, \
    DeleteOrderInfoView, OrderSendInfosView, OrderSendGoodsView, FinishOrdersView, FinishGoodsView, RefundOrdersView, \
    RefundGoodsView, CancelOrderView

urlpatterns = [
    path('orders/settlement/', OrderSettlementView.as_view()),
    path('orders/commit/', OrderCommitView.as_view()),
    # 全部订单
    path('orders/info/', OrderInfosView.as_view()),
    path('orders/good/', OrderGoodsView.as_view()),
    # 待配送订单
    path('orders/send/info/', OrderSendInfosView.as_view()),
    path('orders/send/good/', OrderSendGoodsView.as_view()),
    # 已完成订单
    path('orders/finish/info/', FinishOrdersView.as_view()),
    path('orders/finish/good/', FinishGoodsView.as_view()),
    # 退款订单
    path('orders/refund/info/', RefundOrdersView.as_view()),
    path('orders/refund/good/', RefundGoodsView.as_view()),
    # 删除订单
    path('order/<id>/delete/', DeleteOrderInfoView.as_view()),
    # 取消订单
    path('order/cancel/', CancelOrderView.as_view()),
]
